
import request from '../index';

/**
 * @description: get current config
 * @return {*}
 */
export function getSmsReadable() {
    return request({
        url: '/api/sms/readable',
        method: 'get'
    });
}

export function sendSMS(params){
    return request({
        url: '/api/sms/send',
        method: 'post',
        data: params
    });
}

export function getSmsStatus(id){
    return request({
        url: '/api/sms/status',
        method: 'get',
        params: {
            id: id
        }
    });
}

// 短信
export async function getSmsInfo() {
    return request({
        url: '/api/sms/list',
        method: 'get'
    });
}

// 删除短信
export async function delSmsInfo(params) {
    return request({
        url: '/api/sms/delete',
        method: 'post',
        data: params
    });
}

// 删除全部短信
export async function delAllSmsInfo(params) {
    return request({
        url: '/api/sms/deleteall',
        method: 'post',
        data: params
    });
}
